@charset "utf-8";

/**
 * Site header
 */
.site-header {
  // Positioning context for the mobile navigation icon
  position: relative;
  min-height: $spacing-unit * 1.865;
  margin-top: $spacing-unit;
}

.site-title {
  @include relative-font-size(1.625);

  float: left;
  margin-bottom: 0;
  font-weight: 300;
  line-height: $base-line-height * $base-font-size * 2.25;
  letter-spacing: -1px;

  &,
  &:visited {
    color: #eee;
  }
}

.site-nav {
  float: right;
  line-height: $base-line-height * $base-font-size * 2.25;

  .nav-trigger {
    display: none;
  }

  .menu-icon {
    display: none;
  }

  .page-link {
    color: #ddd;
    line-height: $base-line-height;

    // Gaps between nav items, but not on the last one
    &:not(:last-child) {
      margin-right: 20px;
    }
  }

  @include media-query($on-palm) {
    position: absolute;
    top: 9px;
    right: $spacing-unit / 2;
    text-align: right;
    background-color: $background-color;
    border: 1px solid $grey-color-light;
    border-radius: 5px;

    label[for="nav-trigger"] {
      z-index: 2;
      display: block;
      float: right;
      width: 36px;
      height: 36px;
      cursor: pointer;
    }

    .menu-icon {
      display: block;
      float: right;
      width: 36px;
      height: 26px;
      padding-top: 10px;
      line-height: 0;
      text-align: center;

      > svg {
        fill: $grey-color-dark;
      }
    }

    input ~ .trigger {
      display: none;
      clear: both;
    }

    input:checked ~ .trigger {
      display: block;
      padding-bottom: 5px;
    }

    .page-link {
      display: block;
      margin-left: 20px;
      padding: 5px 10px;

      &:not(:last-child) {
        margin-right: 0;
      }
    }
  }
}

/**
 * Site footer
 */
.site-footer {
  padding-bottom: $spacing-unit;

  a {
    color: #ddd;
  }
}

.footer-heading {
  @include relative-font-size(1.125);

  margin-bottom: $spacing-unit / 2;
}

.contact-list,
.social-media-list {
  margin-left: 0;
  list-style: none;
}

.footer-col-wrapper {
  @include relative-font-size(0.9375);

  margin-left: -$spacing-unit / 2;
  color: #ddd;

  @extend %clearfix;
}

.footer-col {
  float: left;
  padding-left: $spacing-unit / 2;
}

.footer-col-1 {
  width: calc(35% - (#{$spacing-unit} / 2));
}

.footer-col-2 {
  width: calc(20% - (#{$spacing-unit} / 2));
}

.footer-col-3 {
  width: calc(45% - (#{$spacing-unit} / 2));
}

@include media-query($on-laptop) {
  .footer-col-1,
  .footer-col-2 {
    width: calc(50% - (#{$spacing-unit} / 2));
  }

  .footer-col-3 {
    width: calc(100% - (#{$spacing-unit} / 2));
  }
}

@include media-query($on-palm) {
  .footer-col {
    float: none;
    width: calc(100% - (#{$spacing-unit} / 2));
  }
}

.wrapper {
  box-sizing: border-box;
  color: #645647;
  font-family: $base-font-family;
  background: #fffcf6;
  border-radius: 4px;
  box-shadow: 0 3px 8px rgba(69,18,10,.4);
}

.site-header,
.site-footer {
  .wrapper {
    color: #fff;
    background: linear-gradient(#716661, #5f5450);
    border-bottom: 1px #534843 solid;
  }
}

/**
 * Page content
 */

.page-content {
  flex: 1;
  margin-bottom: $spacing-unit;
  padding: $spacing-unit 0;

  h2 {
    @include relative-font-size(2);

    @include media-query($on-laptop) {
      @include relative-font-size(1.75);
    }
  }

  h3 {
    @include relative-font-size(1.625);

    @include media-query($on-laptop) {
      @include relative-font-size(1.375);
    }
  }

  h4 {
    @include relative-font-size(1.25);

    @include media-query($on-laptop) {
      @include relative-font-size(1.125);
    }
  }

  .wrapper {
    position: relative;
    padding: 64px 48px;
    color: #645647;
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
    background: #fffcf6;
    border-top: 1px solid #fffcf6;
    border-radius: 4px;
    text-size-adjust: 100%;

    p {
      margin-top: 0;
      margin-bottom: 10px;
      font-size: 24px;
      line-height: 35px;
    }

    .octicon {
      display: inline-block;
      vertical-align: text-bottom;
      fill: currentColor;
    }

    .anchor {
      float: left;
      margin-left: -20px;
      padding-right: 4px;
      line-height: 1;
    }

    .anchor:focus {
      outline: none;
    }

    details {
      display: block;
    }

    summary {
      display: list-item;
    }

    a {
      color: #0366d6;
      text-decoration: none;
      background-color: initial;
    }

    a:active,
    a:hover {
      outline-width: 0;
    }

    strong {
      font-weight: inherit;
      font-weight: bolder;
      font-weight: 600;
    }

    img {
      position: relative;
      box-sizing: border-box;
      max-width: 100%;
      margin-top: 20px;
      padding: 9px;
      background: #fff;
      border: 1px #ebdfd5 solid;
    }

    code,
    kbd,
    pre {
      font-size: 1em;
      font-family: monospace;
    }

    hr {
      box-sizing: initial;
      height: 3px;
      margin: 2em 0;
      padding: 0;
      overflow: hidden;
      background: transparent;
      background-color: #ebdfd5;
      border: 0;
    }

    input {
      margin: 0;
      overflow: visible;
      font: inherit;
      font-size: inherit;
      font-family: inherit;
      line-height: inherit;
    }

    [type="checkbox"] {
      box-sizing: border-box;
      padding: 0;
    }

    * {
      box-sizing: border-box;
    }

    a:hover {
      text-decoration: underline;
    }

    hr::after,
    hr::before {
      display: table;
      content: "";
    }

    hr::after {
      clear: both;
    }

    td,
    th {
      padding: 0;
    }

    table {
      display: block;
      width: 100%;
      overflow: auto;
      border-collapse: collapse;
      border-spacing: 0;

      th {
        font-weight: 600;
      }

      td,
      table th {
        padding: 6px 13px;
        border: 1px solid #dfe2e5;
      }

      tr {
        background-color: #fff;
        border-top: 1px solid #ebdfd5;
      }

      tr:nth-child(2n) {
        background-color: #f6f8fa;
      }

      img[align="right"] {
        padding-left: 20px;
      }
    }

    details summary {
      cursor: pointer;
    }

    kbd {
      display: inline-block;
      padding: 3px 5px;
      font: 11px SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
      line-height: 10px;
      vertical-align: middle;
      background-color: #fafbfc;
      border: 1px solid #d1d5da;
      border-radius: 3px;
      box-shadow: inset 0 -1px 0 #d1d5da;
    }

    /* --------------标题 Start-------------  */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      margin-bottom: 16px;
      color: #645647;
      font-weight: 600;
      line-height: 1em;

      .octicon-link {
        color: #1b1f23;
        vertical-align: middle;
        visibility: hidden;
      }

      &:hover .anchor {
        text-decoration: none;
      }

      &:hover .anchor .octicon-link {
        visibility: visible;

        &::before {
          display: inline-block;
          width: 16px;
          height: 16px;
          background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true'%3E%3Cpath fill-rule='evenodd' d='M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z'%3E%3C/path%3E%3C/svg%3E");
          content: " ";
        }
      }
    }

    h1,
    h2 {
      padding-bottom: 0.3em;
      font-weight: 600;
      border-bottom: 1px solid #fff6f6;
    }

    h1 {
      margin: 0.67em 0;
      margin-bottom: 1em;
      font-size: 2.8em;
      border: none;
    }

    h2 {
      font-size: 1.8em;
      line-height: 2em;
    }

    h3 {
      font-size: 1.25em;
    }

    h3,
    h4 {
      font-weight: 600;
    }

    h4 {
      font-size: 1em;
    }

    h5 {
      font-size: 0.875em;
    }

    h5,
    h6 {
      font-weight: 600;
    }

    h6 {
      font-size: 0.85em;
    }

    /* --------------标题 end-------------  */

    blockquote {
      position: relative;
      min-height: 40px;
      margin: 0;
      margin-bottom: 20px;
      padding-left: 30px;
      color: #b4a08e;
      font-size: 23px;
      line-height: 40px;
      word-break: break-all;
      background-image: url("");
      background-repeat: no-repeat;
      background-position: 0 0;
      background-size: 13px;
    }

    ol,
    ul {
      margin-top: 0;
      margin-bottom: 0;
      padding-left: 0;
    }

    dd {
      margin-left: 0;
    }

    code,
    pre {
      font-size: 12px;
      font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    }

    pre {
      margin-top: 0;
      margin-bottom: 0;
      word-wrap: normal;
    }

    input::-webkit-inner-spin-button,
    input::-webkit-outer-spin-button {
      margin: 0;
      appearance: none;
    }

    :checked + .radio-label {
      position: relative;
      z-index: 1;
      border-color: #0366d6;
    }

    .border {
      border: 1px solid #e1e4e8 !important;
    }

    .border-0 {
      border: 0 !important;
    }

    .border-bottom {
      border-bottom: 1px solid #e1e4e8 !important;
    }

    .rounded-1 {
      border-radius: 3px !important;
    }

    .bg-white {
      background-color: #fff !important;
    }

    .bg-gray-light {
      background-color: #fafbfc !important;
    }

    .text-gray-light {
      color: #6a737d !important;
    }

    .mb-0 {
      margin-bottom: 0 !important;
    }

    .my-2 {
      margin-top: 8px !important;
      margin-bottom: 8px !important;
    }

    .pl-0 {
      padding-left: 0 !important;
    }

    .py-0 {
      padding-top: 0 !important;
      padding-bottom: 0 !important;
    }

    .pl-1 {
      padding-left: 4px !important;
    }

    .pl-2 {
      padding-top: 8px !important;
      padding-bottom: 8px !important;
      padding-left: 8px !important;
    }

    .py-2 {
      padding-top: 8px !important;
      padding-bottom: 8px !important;
    }

    .pl-3,
    .px-3 {
      padding-left: 16px !important;
    }

    .px-3 {
      padding-right: 16px !important;
    }

    .pl-4 {
      padding-left: 24px !important;
    }

    .pl-5 {
      padding-left: 32px !important;
    }

    .pl-6 {
      padding-left: 40px !important;
    }

    .f6 {
      font-size: 12px !important;
    }

    .lh-condensed {
      line-height: 1.25 !important;
    }

    .text-bold {
      font-weight: 600 !important;
    }

    .pl-c {
      color: #6a737d;
    }

    .pl-smw,
    .pl-v {
      color: #e36209;
    }

    .pl-c1,
    .pl-s .pl-v {
      color: #005cc5;
    }

    .pl-e,
    .pl-en {
      color: #6f42c1;
    }

    .pl-s .pl-s1,
    .pl-smi {
      color: #24292e;
    }

    .pl-ent {
      color: #22863a;
    }

    .pl-k {
      color: #d73a49;
    }

    .pl-pds,
    .pl-s,
    .pl-s .pl-pse .pl-s1,
    .pl-sr,
    .pl-sr .pl-cce,
    .pl-sr .pl-sra,
    .pl-sr .pl-sre {
      color: #032f62;
    }

    .pl-bu {
      color: #b31d28;
    }

    .pl-ii {
      color: #fafbfc;
      background-color: #b31d28;
    }

    .pl-c2 {
      color: #fafbfc;
      background-color: #d73a49;
    }

    .pl-c2::before {
      content: "^M";
    }

    .pl-sr .pl-cce {
      color: #22863a;
      font-weight: 700;
    }

    .pl-ml {
      color: #735c0f;
    }

    .pl-mh,
    .pl-mh .pl-en,
    .pl-ms {
      color: #005cc5;
      font-weight: 700;
    }

    .pl-mi {
      color: #24292e;
      font-style: italic;
    }

    .pl-mb {
      color: #24292e;
      font-weight: 700;
    }

    .pl-md {
      color: #b31d28;
      background-color: #ffeef0;
    }

    .pl-mi1 {
      color: #22863a;
      background-color: #f0fff4;
    }

    .pl-mc {
      color: #e36209;
      background-color: #ffebda;
    }

    .pl-mi2 {
      color: #f6f8fa;
      background-color: #005cc5;
    }

    .pl-mdr {
      color: #6f42c1;
      font-weight: 700;
    }

    .pl-ba {
      color: #586069;
    }

    .pl-sg {
      color: #959da5;
    }

    .pl-corl {
      color: #032f62;
      text-decoration: underline;
    }

    .pl-3 {
      padding-left: 16px !important;
    }

    .pl-7 {
      padding-left: 48px !important;
    }

    .pl-8 {
      padding-left: 64px !important;
    }

    .pl-9 {
      padding-left: 80px !important;
    }

    .pl-10 {
      padding-left: 96px !important;
    }

    .pl-11 {
      padding-left: 112px !important;
    }

    .pl-12 {
      padding-left: 128px !important;
    }

    &::after,
    &::before {
      position: absolute;
      top: 23px;
      right: 23px;
      bottom: 31px;
      left: 23px;
      display: block;
      text-align: bottom;
      border: 2px solid #e9e5d9;
      content: "";
      pointer-events: none;
    }

    &::after {
      top: 28px;
      right: 28px;
      bottom: 36px;
      left: 28px;
      clear: both;
    }

    > :first-child {
      margin-top: 0 !important;
    }

    > :last-child {
      margin-bottom: 0 !important;
    }

    a:not([href]) {
      color: inherit;
      text-decoration: none;
    }

    blockquote > :first-child {
      margin-top: 0;
    }

    blockquote > :last-child {
      margin-bottom: 0;
    }

    img[align="left"] {
      padding-right: 20px;
    }

    code {
      margin: 0;
      padding: 0.2em 0.4em;
      font-size: 85%;
      background-color: rgba(27,31,35,.05);
      border-radius: 3px;
    }

    pre > code {
      margin: 0;
      padding: 0;
      font-size: 100%;
      white-space: pre;
      word-break: normal;
      background: transparent;
      border: 0;
    }

    .highlight {
      margin-bottom: 16px;
    }

    pre code {
      display: inline;
      max-width: auto;
      margin: 0;
      padding: 0;
      overflow: visible;
      line-height: inherit;
      word-wrap: normal;
      background-color: initial;
      border: 0;
    }

    .commit-tease-sha {
      display: inline-block;
      color: #444d56;
      font-size: 90%;
      font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    }

    .full-commit .btn-outline:not(:disabled):hover {
      color: #005cc5;
      border-color: #005cc5;
    }

    .blob-wrapper {
      overflow-x: auto;
      overflow-y: hidden;
    }

    .blob-wrapper-embedded {
      max-height: 240px;
      overflow-y: auto;
    }

    .blob-num {
      width: 1%;
      min-width: 50px;
      padding-right: 10px;
      padding-left: 10px;
      color: rgba(27,31,35,.3);
      font-size: 12px;
      font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
      line-height: 20px;
      white-space: nowrap;
      text-align: right;
      vertical-align: top;
      cursor: pointer;
      user-select: none;
    }

    .blob-num:hover {
      color: rgba(27,31,35,.6);
    }

    .blob-num::before {
      content: attr(data-line-number);
    }

    .blob-code {
      position: relative;
      padding-right: 10px;
      padding-left: 10px;
      line-height: 20px;
      vertical-align: top;
    }

    .blob-code-inner {
      overflow: visible;
      color: #24292e;
      font-size: 12px;
      font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
      white-space: pre;
      word-wrap: normal;
    }

    .pl-token.active,
    .pl-token:hover {
      background: #ffea7f;
      cursor: pointer;
    }

    .tab-size[data-tab-size="1"] {
      tab-size: 1;
    }

    .tab-size[data-tab-size="2"] {
      tab-size: 2;
    }

    .tab-size[data-tab-size="3"] {
      tab-size: 3;
    }

    .tab-size[data-tab-size="4"] {
      tab-size: 4;
    }

    .tab-size[data-tab-size="5"] {
      tab-size: 5;
    }

    .tab-size[data-tab-size="6"] {
      tab-size: 6;
    }

    .tab-size[data-tab-size="7"] {
      tab-size: 7;
    }

    .tab-size[data-tab-size="8"] {
      tab-size: 8;
    }

    .tab-size[data-tab-size="9"] {
      tab-size: 9;
    }

    .tab-size[data-tab-size="10"] {
      tab-size: 10;
    }

    .tab-size[data-tab-size="11"] {
      tab-size: 11;
    }

    .tab-size[data-tab-size="12"] {
      tab-size: 12;
    }

    .task-list-item {
      list-style-type: none;
    }

    > ul.task-list {
      padding-left: 1.6em;
    }

    .task-list-item::after {
      display: none;
    }

    .task-list-item + .task-list-item {
      margin-top: 3px;
    }

    .task-list-item input {
      position: relative;
      width: 16px;
      height: 16px;
      margin: 0 0.2em 0.25em -1.6em;
      vertical-align: middle;
    }

    .task-list-item input::after {
      position: absolute;
      top: 0;
      left: 0;
      display: block;
      width: 16px;
      height: 16px;
      background-image: url("");
      background-size: contain;
      content: "";
    }

    .task-list-item input:checked::after {
      position: absolute;
      top: 0;
      left: 0;
      display: block;
      width: 16px;
      height: 16px;
      background-color: #fffcf6;
      background-image: url("");
      background-size: contain;
      content: "";
    }

    blockquote,
    details,
    dl,
    ol,
    p,
    pre,
    table,
    ul {
      margin-top: 0;
      margin-bottom: 1.8em;
    }

    pre,
    .highlight pre {
      position: relative;
      padding: 16px;
      overflow: auto;
      font-size: 85%;
      font-size: 18px;
      line-height: 1.4;
      background: #fff;
      border: 1px #ebdfd5 solid;
    }

    /* --------------列表 Start-------------  */

    li {
      word-wrap: break-all;
    }

    ul li {
      position: relative;
      min-height: 35px;
      color: #645647;
      font-size: 24px;
      line-height: 35px;
      text-indent: 18px;
      word-break: break-all;
      list-style: none;
    }

    ol li {
      position: relative;
      min-height: 35px;
      margin-left: 19px;
      color: #645647;
      font-size: 24px;
      line-height: 35px;
    }

    ul li::after {
      position: absolute;
      top: 13px;
      left: 1px;
      width: 8px;
      height: 8px;
      overflow: hidden;
      background: #dfd6c5;
      border-radius: 4px;
      content: ".";
    }
    
    .post-list > li {
      margin-bottom: $spacing-unit;

      &::after {
        top: 17px;
      }
    }

    li + li {
      margin-top: 0.25em;
    }

    dl {
      padding: 0;
    }

    dl dt {
      margin-top: 16px;
      padding: 0;
      font-weight: 600;
      font-size: 1em;
      font-style: italic;
    }

    dl dd {
      margin-bottom: 16px;
      padding: 0 16px;
    }

    > ol {
      padding-left: 1.6em;
    }

    ol ol,
    ul ol {
      list-style-type: lower-roman;
    }

    ol ol,
    ol ul,
    ul ol,
    ul ul {
      margin-top: 0;
      margin-bottom: 0;
      margin-left: 1em;
    }

    ol ol ol,
    ol ul ol,
    ul ol ol,
    ul ul ol {
      list-style-type: lower-alpha;
    }

    li > p {
      margin-top: 16px;
    }

    /* --------------列表 End-------------  */
  }
}

.page-heading {
  @include relative-font-size(2);
}

.post-list {
  margin-left: 0;
  list-style: none;
}


.post-list-heading {
  @include relative-font-size(1.75);
}

.post-meta {
  color: $grey-color;
  font-size: $small-font-size;
}

.post-link {
  display: block;

  @include relative-font-size(1.5);
}

/**
 * Posts
 */
.post-header {
  margin-bottom: $spacing-unit;
}

.post-title {
  @include relative-font-size(2.625);

  line-height: 1;
  letter-spacing: -1px;

  @include media-query($on-laptop) {
    @include relative-font-size(2.25);
  }
}
